//登录
function login(){
	var username=encode64($("#username").val());
	var password=encode64($("#password").val());
	$.ajax({
        url: "adminLoginJson.do",
        datatype: 'json',
        type: "Post",
        data: {
        	"name":username,
        	"password":password
        },
        success: function (data) {
        	if(data!=null){
        		var result=eval("(" + data + ")").result;
        		if(result==1){
        			window.location.href="settingIndex.do"
        		}else{
        			$("#errorMessage").html("用户名或密码错误！");
        		}
        	}
        },
    }); 
}
